package com.hua.api.core.activemq;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;
// https://blog.csdn.net/u012811841/article/details/143105679
@Component
public class TopicConsumerListener {

    //topic模式的消费者
    // @JmsListener(destination="${spring.activemq.topic-name}", containerFactory="topicListener")
    @JmsListener(destination=ActiveMqConstant.hua1000_api_topic, containerFactory="topicListener")
    public void readActiveQueue(String message) {
        System.out.println("topic接受到：" + message+"  --"+System.currentTimeMillis());
    }

}
